package per.com.service.impl.teachermanage;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import per.com.bean.teachermanage.TeacherManage;
import per.com.dao.teachermanage.TeachermanagerDao;

import java.util.List;

@Service("TeachermanageServiceId")
public class TeachermangeService {
    @Autowired
    @Qualifier("TeachermanageDaoId")
    private TeachermanagerDao teachermanagerDao;

    public void insertnew(TeacherManage teacherManage){
        teachermanagerDao.insertnew(teacherManage);
    }

    public List<TeacherManage> getTeacher() {
        return teachermanagerDao.getTeacher();
    }
    public boolean deleteTeacher(String teacherid){
        return teachermanagerDao.deleteTeacher(teacherid);
    }
}
